﻿#ifndef ZIP_H
#define ZIP_H

#include <QObject>
class ZipResponse:public QObject
{
    Q_OBJECT
signals:
    void progress(int,int);
    void finished(bool,const QString&);
};

class Zip
{
public:
    // 压缩
    static ZipResponse* compressAsync(const QString& dir,const QString & zipPath);
    static ZipResponse* compressAsync(const QString& rootDir,const QStringList&files,const QString &zipPath);
    // 解压
    static ZipResponse* decompressionAsync(const QString & zipPath, const QString & dir);
};

#endif // ZIP_H
